import {observer,inject} from "mobx-react";
import React, {Component} from 'react';

@inject('error')
@observer class tmp extends Component {

    showError = () => {
        this.props.error.throwError({
            info: 'test info',
            code: '1000',
            from: 'examples\\error.js'
        })
    }

    render(){
        return (
            <div>
                <button onClick={this.showError}>error show</button>
            </div>
        )
    }
}

export default tmp